<?php
namespace app\model;

class MemberWalletModel extends BaseModel{

    protected $table = 'rl_member_wallets';

    public function getAvailableBalanceAttribute($value)
    {
        return $this->balance-$this->frozen_amount;
    }

}